package office.stock.model;

import javax.persistence.Entity;
import javax.persistence.NamedQuery;

import lombok.Getter;
import lombok.Setter;

@Entity
@Setter
@Getter
@NamedQuery(name = "User.findByEmail", query = "SELECT user FROM User user WHERE user.email = :email")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;
    
    private String email;

    public User(String email) {
	this.email = email;
    }
    public User() {
    }
}
